instantiateActivityCompat

@NonNull
open fun instantiateActivityCompat(@NonNull cl: @NonNull ClassLoader, @NonNull className: @NonNull String, @Nullable intent: @Nullable Intent): @NonNull Activity(source)

Allows application to override the creation of activities. This can be used to perform things such as dependency injection or class loader changes to these classes.

This method is only intended to provide a hook for instantiation. It does not provide earlier access to the Activity object. The returned object will not be initialized as a Context yet and should not be used to interact with other android APIs.

Parameters

cl

The default classloader to use for instantiation.

className

The class to be instantiated.

intent

Intent creating the class.